package common;

import java.io.Serializable;

public class JdbcProperties implements Serializable {

	private static final long serialVersionUID = 1L;

	public static String DRIVER;
	public static String URL;
	public static String NAME;
	public static String PASSWORD;

	static {
		if ("linux".equalsIgnoreCase(System.getProperty("os.name"))) {
			System.out.println ( "linux envirement" ) ;
			DRIVER = "com.mysql.jdbc.Driver";
			URL = "jdbc:mysql://rm-j6cf74xre0k8uy441io.mysql.rds.aliyuncs.com:3306/ate?useSSL=true";
			NAME = "root";
			PASSWORD = "etonpay@123";
		} else {
			System.out.println ( "windows envirement" ) ;
//			DRIVER = "com.mysql.jdbc.Driver";
//			URL = "jdbc:mysql://localhost:3306/ate?useSSL=false";
//			NAME = "root";
//			PASSWORD = "etonpay@123";
			DRIVER = "com.mysql.jdbc.Driver";
			URL = "jdbc:mysql://rm-j6cf74xre0k8uy441io.mysql.rds.aliyuncs.com:3306/ate?useSSL=true";
			NAME = "root";
			PASSWORD = "etonpay@123";
		}
	}
}
